<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <? setlocale(LC_ALL, 'bs-Latn-BA'); ?>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

        <?
            $base_url="http://".$_SERVER['HTTP_HOST'];
            $base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), "", $_SERVER['SCRIPT_NAME']);
        ?>

        <base href="<?= $base_url ?>">
        <? include 'metatags.php'; ?>

        <?
            if(isset($_GET['post_id']))
                $end='dynamic';
            else if(isset($_GET['page']))
                $end='blog';
            else
            {
                $urlarray=explode("/", $_SERVER['REQUEST_URI']);
                $end=$urlarray[count($urlarray) - 1];
                if($end == "")
                    $end='index';
            }
            $CUR='class="current"';
            $title=$meta[$end]['title'];
            $desc=$meta[$end]['desc'];
            $keyw=$meta[$end]['keyw'];

            /*
              $page_bl = $urlarray[count($urlarray) - 2];
              if($page_bl == 'blog')
              $post_id = $page_bl = $urlarray[count($urlarray) - 1];
             */
        ?>

        <script>
            var page = '<?= $end ?>';
        </script>

        <title><?= $title ?></title>

        <meta name="description" content="<?= $desc ?>">
        <meta name="keywords" content="<?= $keyw ?>">
        <meta name="viewport" content="width=device-width">

        <link rel="shortcut icon" href="assets/img/favicon.ico">

        <link rel="stylesheet" href="assets/css/main.min.css">

        <script src="assets/js/vendor/modernizr-2.6.2.min.js"></script>

        <?
            if($end == 'kontakt'):
                ?>
                <script type="text/javascript"
                        src="http://maps.googleapis.com/maps/api/js?key=AIzaSyACIkfLKjw2w9u2V9XKJUqnFqfIirp6Bsc&sensor=true">
                </script>
                <script type="text/javascript">
                    function initialize() {
                                                                                                                                                                                                                
                        var myLatlng = new google.maps.LatLng(42.104061, 19.099597);

                        var mapOptions = {
                            center: myLatlng,
                            zoom: 16,
                            scrollwheel: false,
                            navigationControl: false,
                            mapTypeControl: false,
                            mapTypeId: google.maps.MapTypeId.ROADMAP
                        };

                        var map = new google.maps.Map(document.getElementById("map_holder"),
                        mapOptions);

                        //https://maps.google.com/?ll=42.101673,19.095343&spn=0.003375,0.008256&t=m&z=18
                        var marker = new google.maps.Marker({
                            position: myLatlng,
                            map: map,
                            title:"NU SIT"
                        });

                    }
                                                                                                                                                                                                                            
                    window.addEventListener("load", initialize, false);

                </script>


            <? endif; ?>

    </head>
    <body>

        <a href="#top" id="top-link"><img src="assets/img/arrow-top.png" alt="Vrh stranice" title="Idi na vrh" /></a>

        <div class="wrap">

            <div id="top">

                <!--                <div class="top_social">
                
                                    <ul class="social_wrapper clearifx">
                
                                        <li><a href="http://facebook.com/#" title="Facebook"><img alt="" src="assets/img/social/facebook.png" alt="facebook"></a></li>
                
                                        <li><a href="http://twitter.com/#" title="Twitter"><img alt="" src="assets/img/social/twitter.png" alt="twitter"></a></li>
                
                                        <li><a href="#" title="Linkedin"><img alt="" src="assets/img/social/linkedin.png" alt="linkedin"></a></li>
                
                                        <li><a href="#" title="Google+"><img alt="" src="assets/img/social/google.png" alt="google+"></a></li>
                
                                    </ul>
                
                                </div>-->

                <div class="top_contact_info clearifx">
                    <ul>

                        <li><img class="middle" alt="Email" src="assets/img/social/grey_email_icon.png"><a href="mailto:info@webizrada.me">info@webizrada.me</a></li>
                        <li><img class="middle" alt="Telefon" src="assets/img/social/grey_phone_icon.png">+382 (0)68 466 371</li>
                    </ul>
                </div>

            </div>






            <div class="clearfix">

                <a href="index" id="logo"></a>

                <div id="menu_holder" class="clearfix">

                    <ul id="menu" class="sf-menu">

                        <li <? if($end == 'index') echo $CUR; ?>><a href="index" title="NU SIT | Izrada sajtova visokog kvaliteta | Web izrada po najpovoljnijim cijenama">Home</a></li>
                        <li <? if($end == 'usluge' || $end == 'webdizajn' || $end == 'izradasajtova' || $end == 'stampa' || $end == 'odrzavanjesajtova' || $end == 'internetmarketing' || $end == 'webprogramiranje' || $end == 'softwareengineering' || $end == 'itconsulting') echo $CUR; ?>>
                            <a href="usluge" title="Kompletan set IT usluga na jednom mjestu">IT Usluge</a>
                            <ul>
                                <li <? if($end == 'izradasajtova') echo $CUR; ?>><a href="izradasajtova" title="Izrada sajtova brzo i kavlitetno">Izrada sajtova - Web dizajn</a></li>
                                <li <? if($end == 'stampa') echo $CUR; ?>><a href="stampa" title="Usluge štampanja superiornog kvaliteta">Štampa</a></li>
                                <li <? if($end == 'webizrada') echo $CUR; ?>><a href="webizrada" title="Pratimo dobro definisan proces web izrade ">Web izrada</a></li>
                                <li <? if($end == 'odrzavanjesajtova') echo $CUR; ?>><a href="odrzavanjesajtova" title="Održavanje sajtova sa niskim cijenama">Održavanje sajtova</a></li>
                                <li <? if($end == 'internetmarketing') echo $CUR; ?>><a href="internetmarketing" title="Prilikom izrade sajtova optimizujemo Vaš sajt za pretraživače">Internet marketing</a></li>
                                <li <? if($end == 'webprogramiranje') echo $CUR; ?>><a href="webprogramiranje" title="Odaberite pravog pratnera za web izradu Vaše apliakcije">Web programiranje</a></li>
                                <li <? if($end == 'softwareengineering') echo $CUR; ?>><a href="softwareengineering" title="Preciznost, kvalitet i poštovanje rokova su naša najbolja preporuka">Software engineering</a></li>
                                <li <? if($end == 'itconsulting') echo $CUR; ?>><a href="itconsulting" title="Iskoristite bazu znanja i koristite NU SIT consulting usluge">IT Conuslting</a></li>
                            </ul>
                        </li>
                        <li <? if($end == 'rjesenja' || $end == 'cmspro' || $end == 'rentacarpro' || $end == 'excursionspro' || $end == 'ibookhotel') echo $CUR; ?>>
                            <a href="rjesenja" title="Softverska rješenja">Online Booking Software</a>
                            <ul>
                                <li <? if($end == 'cmspro') echo $CUR; ?>><a href="cmspro" title="Upravljanje sadržajem web stranice">CMS PRO</a></li>
                                <li <? if($end == 'rentacarpro') echo $CUR; ?>><a href="rentacarpro" title="Sistem za online rentiranje vozila">Rent a car PRO</a></li>
                                <li <? if($end == 'excursionspro') echo $CUR; ?>><a href="excursionspro" title="Sistem za online boking izleta i tura">Excursions PRO</a></li>
                                <li <? if($end == 'ibookhotel') echo $CUR; ?>><a href="ibookhotel" title="Sistem za online rezervaciju hotelskog i privatnog smještaja">iBookHotel</a></li>
                            </ul>
                        </li>
                        <li <? if($end == 'onama') echo $CUR; ?>><a href="onama" title="Stranice za izradu sajtova - NU SIT">O nama</a></li>
                        <li <? if($end == 'kontakt') echo $CUR; ?>><a href="kontakt" title="Kontakt">Kontakt</a></li>
                        <li <? if($end == 'blog') echo $CUR; ?>><a href="blog" class="blog-link" title="Izrada sajtova - Blog">Blog</a></li>

                    </ul>

                </div>

            </div>